<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:subview id="menuIzquierdo">
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" /> 
		<html>
			<head>
				<title>ICEfaces, Ajax for Java EE</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
			</head>
			<body>
				<ice:form >
					<ice:panelGrid
						style=" width: 232px; height: 250px; text-align: left;">

						<ice:panelGroup
							style=" margin-left: 20px; margin-top: 10px; text-align: left;">
							<ice:outputText
								value="Selecionado : #{tree.selectedNodeObject.text}"
								escape="false" />
						</ice:panelGroup>

						<ice:panelGroup scrollHeight="320px"
							style="   width: 202px; top: auto; height: 320px; margin-left: 7px;  text-align: left;">
							<ice:tree id="tree" value="#{tree.model}" var="item"
								hideRootNode="true" hideNavigation="false" 
								imageDir="./xmlhttp/css/rime/css-images/" 
								style=" text-align: left;">
								<ice:treeNode  >
									<f:facet name="icon">
										<ice:panelGroup style="display: inline">
											<h:graphicImage value="#{item.userObject.icon}" />
										</ice:panelGroup>
									</f:facet>
									<f:facet name="content">
										<ice:panelGroup
											style="display: inline; top: auto; width: 202px; height: 400px; ">
											<ice:commandLink action="#{item.userObject.Enviar}"
												actionListener="#{item.userObject.nodeClicked}"
												value="#{item.userObject.text}"
												style="font-family: Tahoma, Verdana, Arial, Sans-Serif; font-size: 11px" />
										</ice:panelGroup>
									</f:facet>
								</ice:treeNode>
							</ice:tree>

						</ice:panelGroup>
						<ice:panelGroup
							style="margin-left: 50px; height: 40px; margin-top: 5px">
							<ice:commandButton value="Login / Out" styleClass="boton"
								actionListener="#{tree.action_Loginout}" />
						</ice:panelGroup>
					</ice:panelGrid>

					<ice:panelGrid>
						<ice:panelPopup id="popupCerrar" draggable="false" modal="true"
							visible="#{tree.modalRendered}"
							autoCentre="true" styleClass="corePopup"
							style="position: absolute; background-color: #FFFFFF; width: 400px; height: 100px; z-index:1001; top: 30%; left: 30%; border: 1px; solid #104675;">
							<f:facet name="header">
								<ice:panelGroup styleClass="popupHeaderWrapper">
									<ice:outputText value="Confirmacion..."
										styleClass="popupHeaderText" />
								</ice:panelGroup>
							</f:facet>
							<f:facet name="body">
								<ice:panelGroup styleClass="popupBody">
									<ice:outputText styleClass="qs_label"
										value="#{tree.mensaje_cerrar}" />
									<br />
									<br />
									<br />
									<center>
										<ice:commandButton type="submit" value="Si"
											action="#{tree.action_Cerrar_session}" />
										<ice:commandButton type="submit" value="No"
											actionListener="#{tree.toggleModal}" />

									</center>
								</ice:panelGroup>
							</f:facet>
						</ice:panelPopup>
					</ice:panelGrid>

				</ice:form>

			</body>
		</html>
	</f:subview>
</jsp:root>